shifting functions horizontally